﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200011B RID: 283
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BattleTargetList : IMessage<BattleTargetList>, IMessage, IEquatable<BattleTargetList>, IDeepCloneable<BattleTargetList>, IBufferMessage
	{
		// Token: 0x170003EA RID: 1002
		// (get) Token: 0x06000D1E RID: 3358 RVA: 0x00027C5D File Offset: 0x00025E5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BattleTargetList> Parser
		{
			get
			{
				return BattleTargetList._parser;
			}
		}

		// Token: 0x170003EB RID: 1003
		// (get) Token: 0x06000D1F RID: 3359 RVA: 0x00027C64 File Offset: 0x00025E64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BattleTargetListReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170003EC RID: 1004
		// (get) Token: 0x06000D20 RID: 3360 RVA: 0x00027C76 File Offset: 0x00025E76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BattleTargetList.Descriptor;
			}
		}

		// Token: 0x06000D21 RID: 3361 RVA: 0x00027C7D File Offset: 0x00025E7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleTargetList()
		{
		}

		// Token: 0x06000D22 RID: 3362 RVA: 0x00027C90 File Offset: 0x00025E90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleTargetList(BattleTargetList other) : this()
		{
			this.battleTargetList_ = other.battleTargetList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000D23 RID: 3363 RVA: 0x00027CBA File Offset: 0x00025EBA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleTargetList Clone()
		{
			return new BattleTargetList(this);
		}

		// Token: 0x170003ED RID: 1005
		// (get) Token: 0x06000D24 RID: 3364 RVA: 0x00027CC2 File Offset: 0x00025EC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<BattleTarget> BattleTargetList_
		{
			get
			{
				return this.battleTargetList_;
			}
		}

		// Token: 0x06000D25 RID: 3365 RVA: 0x00027CCA File Offset: 0x00025ECA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BattleTargetList);
		}

		// Token: 0x06000D26 RID: 3366 RVA: 0x00027CD8 File Offset: 0x00025ED8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BattleTargetList other)
		{
			return other != null && (other == this || (this.battleTargetList_.Equals(other.battleTargetList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000D27 RID: 3367 RVA: 0x00027D0C File Offset: 0x00025F0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.battleTargetList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000D28 RID: 3368 RVA: 0x00027D40 File Offset: 0x00025F40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000D29 RID: 3369 RVA: 0x00027D48 File Offset: 0x00025F48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000D2A RID: 3370 RVA: 0x00027D51 File Offset: 0x00025F51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.battleTargetList_.WriteTo(ref output, BattleTargetList._repeated_battleTargetList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000D2B RID: 3371 RVA: 0x00027D78 File Offset: 0x00025F78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.battleTargetList_.CalculateSize(BattleTargetList._repeated_battleTargetList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000D2C RID: 3372 RVA: 0x00027DB1 File Offset: 0x00025FB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BattleTargetList other)
		{
			if (other == null)
			{
				return;
			}
			this.battleTargetList_.Add(other.battleTargetList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000D2D RID: 3373 RVA: 0x00027DDF File Offset: 0x00025FDF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000D2E RID: 3374 RVA: 0x00027DE8 File Offset: 0x00025FE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.battleTargetList_.AddEntriesFrom(ref input, BattleTargetList._repeated_battleTargetList_codec);
				}
			}
		}

		// Token: 0x0400059F RID: 1439
		private static readonly MessageParser<BattleTargetList> _parser = new MessageParser<BattleTargetList>(() => new BattleTargetList());

		// Token: 0x040005A0 RID: 1440
		private UnknownFieldSet _unknownFields;

		// Token: 0x040005A1 RID: 1441
		public const int BattleTargetList_FieldNumber = 1;

		// Token: 0x040005A2 RID: 1442
		private static readonly FieldCodec<BattleTarget> _repeated_battleTargetList_codec = FieldCodec.ForMessage<BattleTarget>(10U, BattleTarget.Parser);

		// Token: 0x040005A3 RID: 1443
		private readonly RepeatedField<BattleTarget> battleTargetList_ = new RepeatedField<BattleTarget>();
	}
}
